package com.pangyangyang.elasticsearch.plugin.handler;

import com.pangyangyang.elasticsearch.plugin.event.DataModifyEvent;
import org.elasticsearch.common.settings.Settings;

import java.util.Map;

/**
 * 处理DataModifyEvent的handler
 * Created by yangwang on 2015/1/15.
 */
public interface EventHandler {

    void handle(DataModifyEvent event);

    /**
     * 初始化接口，用于handler实例的初始化
     */
    void start();

    void stop();

    String getName();

    String getDestination();
}
